/**
 * 格式化首页-发现页面歌单的播放量,最大值可到千亿
 * @param {*} value 
 */
export const playCountFormat = function(value) {
	let length = value.toString().length;
	if (length <= 4) {
		return value;
	} else if (length == 5) {
		return value.toString()[0] + '.' + value.toString()[1] + '万'
	} else if (length == 6) {
		return value.toString()[0] + value.toString()[1] + '.' + value.toString()[2] + '万'
	} else if (length == 7) {
		return value.toString()[0] + value.toString()[1] + value.toString()[2] + '万'
	} else if (length == 8) {
		return value.toString()[0] + value.toString()[1] + value.toString()[2] + value.toString()[3] + '万'
	} else if (length == 9) {
		return value.toString()[0] + '.' + value.toString()[1] + '亿'
	} else if (length == 10) {
		return value.toString()[0] + value.toString()[1] + '.' + value.toString()[2] + '亿'
	} else if (length == 11) {
		return value.toString()[0] + value.toString()[1] + value.toString()[2] + value.toString()[3] + '亿'
	} else if (length == 12) {
		return value.toString()[0] + value.toString()[1] + value.toString()[2] + value.toString()[3] + value.toString()[4] +
			'亿'
	}
}
